package indi.kider.server.bill.service.related;

import indi.kider.common.model.apartment.Houses;
import indi.kider.common.model.apartment.HousesMsg;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import pers.vankid.common.model.base.CommonResponse;

@FeignClient(value = "apartment")
public interface HousesService {
    @GetMapping(value = "apart/houses/{housesId}")
    CommonResponse<HousesMsg> getHousesMsgById(@PathVariable(value = "housesId") Long  houseId);

    @PutMapping("/houses")
    public CommonResponse modifyHouses(@RequestBody Houses houses);
}
